//
//  ViewController.m
//  test02
//
//  Created by Sun on 2020/9/28.
//  Copyright © 2020 NO. All rights reserved.
//

#import "ViewController.h"
#import "ZHScreenCaptureVC.h"
#import "ZHAnimationVC.h"
#import "ZHCorrectVC.h"
#import "GraphicsVC.h"
#import "GraphicsVC2.h"
#import "DrawViewController.h"
#import "ClockVC.h"
#import "NomarlViewController.h"
#import "VHViewController.h"
#import "CCViewController.h"
#import "Dog.h"
#import "BtnViewController.h"
#import "LayoutVC.h"
#import "ArtVideoListVC.h"
#import "LoadImageViewController.h"
#import "InsertMethodVC.h"
#import "test02-Swift.h"
#import "AsynViewController.h"
typedef void(^Block)(void);
@interface ViewController ()

@property (nonatomic,copy)Block myBlock;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSLog(@"1234567890987654345678");
    NSLog(@"66666666");
    
}
#pragma mark 截屏
- (IBAction)btn1Click:(id)sender {
    
    ZHScreenCaptureVC * vc = [[ZHScreenCaptureVC alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}
#pragma mark 截屏

- (IBAction)btn2Click:(id)sender {
    
    
    ZHAnimationVC * vc = [[ZHAnimationVC alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}
#pragma mark 矫正视图
- (IBAction)btn3Click:(id)sender {
    
    
    ZHCorrectVC * vc = [[ZHCorrectVC alloc]init];
    
    vc.modalPresentationStyle =  UIModalPresentationFullScreen;
    
//    [self presentViewController:vc animated:NO completion:nil];
       [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)btn4Click:(id)sender {
    
    GraphicsVC * vc = [[GraphicsVC alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];

}
- (IBAction)btn5Click:(id)sender {
    
    
    GraphicsVC2 * vc = [[GraphicsVC2 alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)btn6Click:(id)sender {
    
    DrawViewController * vc = [[DrawViewController alloc]init];
      
      [self.navigationController pushViewController:vc animated:YES];

}

- (IBAction)btn7Click:(id)sender {
    
    
    
    ClockVC * vc = [[ClockVC alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
}
- (IBAction)btn8Click:(id)sender{
    
    NomarlViewController * vc = [[NomarlViewController alloc]init];
       
       [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)btn9Click:(id)sender{
    
    VHViewController * vh = [[VHViewController alloc]init];
    
    [self.navigationController  pushViewController:vh animated:YES];
}
- (IBAction)btn10Click:(id)sender{
    
    
    
    CCViewController * cc = [[CCViewController alloc]init];
      
      [self.navigationController  pushViewController:cc animated:YES];
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    Dog * objc = [[Dog alloc]init];
    objc.name = @"123";
    NSLog(@"%p",objc);
    _myBlock = ^{
        NSLog(@"%p---%@",objc,objc.name);
    };
    objc.name = @"234";
    _myBlock();
}
#pragma mark 自定义按钮 上下左右宽度 sizetofit
-(IBAction)cutomBtn:(id)sender{
    
    BtnViewController * btn = [[BtnViewController alloc]init];
    
    [self.navigationController pushViewController:btn animated:YES];
}
-(IBAction)layoutFunc:(id)sender{
    
    LayoutVC * layout = [[LayoutVC alloc]init];
       
       [self.navigationController pushViewController:layout animated:YES];
}

-(IBAction)videoList:(id)sender{
    ArtVideoListVC * listVC = [[ArtVideoListVC alloc]init];
         
         [self.navigationController pushViewController:listVC animated:YES];
}


-(IBAction)largeImage:(id)sender{
    LoadImageViewController * loadImg = [[LoadImageViewController alloc]init];
         
         [self.navigationController pushViewController:loadImg animated:YES];
}

-(IBAction)insterMethod:(id)sender{
    
    
    InsertMethodVC * methodVC = [[InsertMethodVC alloc]init];
    
    [self.navigationController pushViewController:methodVC animated:YES];
}

#pragma mark 滑动的网格
- (IBAction)gridClick:(id)sender {
    
    GridViewController * vc = [[GridViewController alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}

#pragma mark 异步渲染
- (IBAction)asynClick:(id)sender {
    
    AsynViewController * vc = [[AsynViewController alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
}
@end
